package com.leather.admin.feignclient.impl;

import com.leather.admin.feignclient.UserClient;
import com.leather.common.result.CodeMsg;
import com.leather.common.result.Result;
import com.leather.common.toolkits.CollectionKit;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;

@Slf4j
@Component
public class UserClientHystrix implements UserClient {
    @Override
    public Result frozenUser(int userId) {
        return Result.error(CodeMsg.SERVER_OFFLINE);
    }

    @Override
    public Result unFrozenUser(int userId) {
        return Result.error(CodeMsg.SERVER_OFFLINE);
    }

    @Override
    public Object list(int offset, int limit, String order, String search) {
        return CollectionKit.emptyTableMap();
    }

}
